package com.contact.util.util.filters;

public class EnumDataFilter<E extends Enum<E>> extends AbstractDataFilter<E, E > {

    private static final long serialVersionUID = -8804483023634254025L;

    private Class<E> enumClass;
    
    
    public EnumDataFilter(String key, Class<E> enumClass) {
        super(DataFilterType.ENUM, key);
        setEnumClass(enumClass);
    }

    public final Class<E> getEnumClass() {
        return enumClass;
    }

    public final void setEnumClass(Class<E> enumClass) {
        this.enumClass = enumClass;
    }

    public final String getEnumClassName() {
        return  enumClass.getCanonicalName();  //should be full path name
    }

}
